package crm.sfh.server.entity;


import android.text.TextUtils;

public class EUser {

    /**
     * id
     */
    String userId;

    /**
     * 账号
     */
    String phone;

    /**
     * 头像
     */
    String head;
    /**
     * 名字
     */
    String name;

    /**
     * 性别
     */
    String sex;
    /**
     * 地址
     */
    String address;

    /**
     * 职业类型 0 学生 1上班族
     */
    String degreeType;

    /**
     * 财力
     */
    long wealth;
    /**
     * 魅力
     */
    long charm;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }
    public String getSexText() {
        return TextUtils.equals("0",sex)?"女":"男";
    }
    public void setAddress(String address) {
        this.address = address;
    }

    public String getDegree() {
//        0 学生 1上班族
        return TextUtils.equals("0",degreeType)?"学生":"上班族";
    }


    public void setCharm(long charm) {

        this.charm = charm;
    }

    public void setWealth(long wealth) {

        this.wealth = wealth;
    }

    public long getCharm() {

        return charm;
    }

    public long getWealth() {

        return wealth;
    }

    public String getDegreeType() {
        return degreeType;
    }

    public void setDegreeType(String degreeType) {
        this.degreeType = degreeType;
    }
}
